SERVER=server_tcp
CLIENT=client_tcp
MYSHELL=myshell
CC=g++
SERVER_SRC=TcpServer.cc
CLIENT_SRC=TcpClient.cc
MYSHELL_SRC=myshell.cc

.PHONY:all
all:$(SERVER) $(CLIENT) $(MYSHELL)
$(SERVER):$(SERVER_SRC)
	$(CC) -o $@ $^ -std=c++17 -lpthread
$(CLIENT):$(CLIENT_SRC)
	$(CC) -o $@ $^ -std=c++17
$(MYSHELL):$(MYSHELL_SRC)
	$(CC) -o $@ $^ -std=c++17
.PHONY:clean
clean:
	rm -rf $(SERVER) $(CLIENT) $(MYSHELL)
